#include <iostream>
using namespace std;

void test() {
  int *ip;
  double *dp;
  float *fp;
  char *cp;

  cout << "ip： " << (void *)(ip) << endl;
  cout << "dp： " << (void *)(dp) << endl;
  cout << "fp： " << (void *)(fp) << endl;
  cout << "cp： " << (void *)(cp) << endl;
}

void test2() {
  int *ip = nullptr;
  double *dp = nullptr;
  float *fp = nullptr;
  char *cp = nullptr;

  cout << "ip： " << (void *)(ip) << endl;
  cout << "dp： " << (void *)(dp) << endl;
  cout << "fp： " << (void *)(fp) << endl;
  cout << "cp： " << (void *)(cp) << endl;
}
int main() {
  //	test2();
  int i;
  double d;
  float f;
  char c;
  short s;

  int *ip;
  double *dp;
  float *fp;
  char *cp;
  short *sp;

  cout << "i的长度： " << sizeof(i) << endl;
  cout << "d的长度： " << sizeof(d) << endl;
  cout << "f的长度： " << sizeof(f) << endl;
  cout << "c的长度： " << sizeof(c) << endl;
  cout << "s的长度： " << sizeof(s) << endl;

  cout << "ip的长度： " << sizeof(ip) << endl;
  cout << "dp的长度： " << sizeof(dp) << endl;
  cout << "fp的长度： " << sizeof(fp) << endl;
  cout << "cp的长度： " << sizeof(cp) << endl;
  cout << "sp的长度： " << sizeof(sp) << endl;

  return 0;
}
